function fn_get_left_menu(menuParentid,menuId){
    //左侧列表上方显示字
	 $.ajax({
	        type: "GET",
	        url: "/api/api/queryParentMenuName",
	        data: {menuId:menuParentid},
	        dataType: "json",
	        success: function(data){
	       	    $("#span_left_title").text(data.title);
	        }
	 });
	 $.ajax({//左侧列表
        type: "GET",
        url: "/api/api/queryViewLeftMenu",
        data: {menuId:menuParentid},
        dataType: "json",
        success: function(data){
       	    var html="";
            $.each(data, function(commentIndex, comment){
            	 var chtml = "";
            	 if(typeof(comment['children'])!='undefined'){
	            	 $.each(comment['children'],function(i,cm){
	            		 if(cm['menuId']==menuId){
	            			 chtml+="<li class=\"active\"><a href=\""+cm['menuViewurl']+"?menuId=" + cm['menuId'] + "\">"+cm['menuName']+"</a></li>";
	                	     $("#page_title").html(cm['menuName']);
	                	     $("#crumbs").html(cm['menuName']);
	                	     document.title='海宽达物流-'+cm['menuName'];
	            		 }else{
	                		 chtml+="<li><a href=\""+cm['menuViewurl']+"?menuId=" + cm['menuId'] + "\">"+cm['menuName']+"</a></li>";
	            		 }
	            	 });
            	 }
            	 if(comment['menuId']==menuId){
            		 html+="<li class=\"active\"><a href=\""+comment['menuViewurl']+"?menuId=" + comment['menuId'] + "\">"+comment['menuName']+"</a></li>";
            		 $("#page_title").html(comment['menuName']);
            		 $("#crumbs").html(comment['menuName']);
            		 document.title='海宽达物流-'+comment['menuName'];
            	 }else{
            		 if(chtml!=""){
            			 html+="<li class=\"parent\"><a href=\""+comment['menuViewurl']+"?menuId=" + comment['menuId'] + "\">"+comment['menuName']+"</a></li>"+chtml;
            		 }else{
            			 html+="<li><a href=\""+comment['menuViewurl']+"?menuId=" + comment['menuId'] + "\">"+comment['menuName']+"</a></li>";
            		 }
            	 }

            });
            $("#ul_left_child").html(html);
        }
    });
	$.ajax({//正文上方BANNER
		url:'/api/api/queryHomePage',
		type:'post',
		async:false,
		data:{
			'homeType':'BANNER'+menuParentid
		},
        dataType: "json",
		success:function(arr){
			var html = ''
            $(arr).each(function(i,cm){
            	html+='<img onclick="window.location.href=\''+cm['homeUrl']+'\'" id="banner'+i+'" src="'+cm['homeImg']+'" style="position: absolute;display:'+(i==0?'block':'none')+'" alt=""/>';
            });
			//alert(html);
			$(".bangzhu-banner").html(html);
			ls=arr.length;
			setInterval(fn_bannerc,3000)
		}
	})
}
var ls = 0;
var i =1;
function fn_bannerc(){
	   if(i>ls-1){
		   i=0;
	   }
	   $(".bangzhu-banner img").fadeOut('slow');
	   $("#banner"+i).fadeIn('slow');
	   i++;
}